/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.openvision.util.xml;


/**
 * Thrown to indicate that an {@link ElementHandler} attempted to process an
 * unsupported element type.
 * 
 * @author Hannes Widmoser
 */
public class UnknownElementException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7373866094464831395L;
	private String elementName;

	public UnknownElementException(String elementName) {
		super("The element " + elementName + " is not supported.");
		this.elementName = elementName;
	}

	public String getElementName() {
		return elementName;
	}
}
